public class EqualsTest {
    public static void main(String[] args) {
        Person p1 = new Person("amy", 10);
        Person p2 = new Person("amy", 10);
        Person p3 = new Person("john", 1);

        System.out.println(p1.equals(p2));
        System.out.println(p1.equals(p3));
    }
}
